package top.chenyaohua.bean;

import java.util.ArrayList;
import java.util.List;

public class MethodInfo {

    private boolean enableStatic ;

    private String packageName;

    private String methodName;

    private List<String> types = new ArrayList<>(5);


    public MethodInfo (String packageName, String methodName) {
        this.packageName = packageName;
        this.methodName = methodName;
    }

    public MethodInfo (String packageName, String methodName, List<String> types) {
        this.packageName = packageName;
        this.methodName = methodName;
        this.types = types;
    }


    public String getPackageName () {
        return packageName;
    }

    public void setPackageName (String packageName) {
        this.packageName = packageName;
    }

    public String getMethodName () {
        return methodName;
    }

    public void setMethodName (String methodName) {
        this.methodName = methodName;
    }

    public List<String> getTypes () {
        return types;
    }

    public void setTypes (List<String> types) {
        this.types = types;
    }

    @Override
    public String toString () {
        return this.packageName+"."+this.methodName+"("+String.join(",",this.types)+")";
    }

    public boolean enableStatic () {
        return enableStatic;
    }

    public void setEnableStatic (boolean enableStatic) {
        this.enableStatic = enableStatic;
    }
}
